setTimeout(function(){
   console.log('I am timer')
})

new Promise(function(resolve){
   console.log('I am promise')
   resolve()
}).then(function(){
   console.log('I am then')
})

console.log('I am main thread')
